package com.aishua.fire.mapper;

import java.util.List;

import com.aishua.fire.entity.menu.AllMenuInfo;
import com.aishua.fire.jpa.entity.TwoLevelMenu;
import com.aishua.fire.mapper.dto.*;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Component
public interface MenuMapper {

	
	List<LeftMenuDto> getLeftMenus(String userName);

	List<AllMenuDto> getOneLevelMenus();

	List<TwoLevelMenuDto> getTwoLevelMenus(String id);

	OneLevelMenuDto getOneMenuById(long id);

	TwoLevelMenuDto getTwoMenuById(long id);


	void updateOneMenu(AllMenuInfo oneLevelMenuinfo);


	void updateTwoMenu(TwoLevelMenuDto oneLevelMenuinfo);


	void addOneMenu(AllMenuInfo oneLevelMenuinfo);

	void addTwoMenu(TwoLevelMenuDto twoLevelMenuDto);

	List<String> getPermsByTwoLevelIdAndUserName(@Param("userName") String userName,@Param("twoLevelMenuId") String twoLevelMenuId);

	List<TwoLevelMenu> getLeftTwoMenus(@Param("id") String id,@Param("userName") String userName);

}
